<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="yes"/>
<xsl:param name="aluguel"/>

<xsl:template match="/">--===============================--
         LOCADORA DE VIDEO	   
--===============================--
                                   
============== RECIBO =============
                                
-------------- FILME --------------
 NOME: <xsl:value-of select="/bd/filmes/filme[@id=/bd/alugueis/aluguel[position() = $aluguel]/filme/id]/nome/text()"/>
 ID: <xsl:value-of select="/bd/alugueis/aluguel[position() = $aluguel]/filme/id"/>    CODIGO: <xsl:value-of select="/bd/alugueis/aluguel[position() = $aluguel]/filme/codigo"/>

------------- CLIENTE -------------
 CODIGO: <xsl:value-of select="/bd/alugueis/aluguel[position() = $aluguel]/codCliente/text()"/>
 NOME: <xsl:value-of select="/bd/clientes/cliente[@id=/bd/alugueis/aluguel[position() = $aluguel]/codCliente]/nome/text()"/>

------------- ALUGUEL -------------
 DATA ALUGUEL: <xsl:value-of select="/bd/alugueis/aluguel[position() = $aluguel]/dataAluguel/text()"/>
 DATA DEVOLUCAO: <xsl:value-of select="/bd/alugueis/aluguel[position() = $aluguel]/dataDevolucao/text()"/>

 RECIBO DE:
  (  ) ALUGUEL    (  ) DEVOLUCAO


    _____________________________
         Assinatura operador


    _____________________________
         Assinatura cliente
</xsl:template>

</xsl:stylesheet>
